﻿using System.Windows;

namespace Songhay.Wpf.Mvvm.ViewModels
{
    /// <summary>
    /// Declares that a View Model must violate MVVM separation of concerns
    /// and directly reference visual elements;
    /// </summary>
    /// <remarks>
    /// This contract may be preferred over making Views receive MVVM Light messages.
    /// </remarks>
    public interface IFrameworkElementReceiver
    {
        /// <summary>
        /// Registers the specified element.
        /// </summary>
        /// <param name="element">The element.</param>
        void Register(FrameworkElement element);
    }
}
